c765c6a9b74125e961a511ee6f15349ae933dd1f,portal-impl/test/integration/com/liferay/portlet/dynamicdatamapping/service/DDMStructureServiceTest.java,DDMStructureServiceTest,testSearchCount,#,232

Before Change



	@Test
	public void testSearchCount() throws Exception {
		long companyId = TestPropsValues.getCompanyId();
		long[] groupIds = new long[] {TestPropsValues.getGroupId()};
		long[] classNameIds = new long[] {_testClassNameId};
		String name = "Test Structure";

After Change


	@Test
	public void testSearchCount() throws Exception {
		int initialCount = DDMStructureLocalServiceUtil.searchCount(
			TestPropsValues.getCompanyId(),
			new long[] {TestPropsValues.getGroupId()},
			new long[] {_classNameId}, "Test Structure", null, null,
			DDMStructureConstants.TYPE_DEFAULT, false);

		addStructure(_classNameId, "Test Structure");

		int count = DDMStructureLocalServiceUtil.searchCount(
			TestPropsValues.getCompanyId(),
			new long[] {TestPropsValues.getGroupId()},
			new long[] {_classNameId}, "Test Structure", null, null,
			DDMStructureConstants.TYPE_DEFAULT, false);